home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Shareware / Programare / sharp / wwwSharp_setup.exe / {app} / Examples / Browser / index.hta < prev   
Text File  |  1999-07-29  |  876b  |  37 lines

  1. <html>
  2. <head>
  3.   <TITLE>HTML Application Example</TITLE>
  4.   <HTA:APPLICATION ID="HTAEx" 
  5.     APPLICATIONNAME="HTAEx" 
  6.     ICON="e.ico"
  7.     WINDOWSTATE="normal">
  8. </head>
  9.  
  10. <body>
  11.  
  12. <span id=AddressBar style="overflow: none">
  13. <span id=AddText>Address</span>
  14. <input type=text value="http://www.microsoft.com" id=TheAddress style="width: expression(document.body.clientWidth - AddText.offsetWidth - AddGo.offsetWidth - 45)">
  15. <input type=button value="Go" id=AddGo onclick="navigate()"><br>
  16. <span>
  17. <br>
  18. <iframe src="http://www.microsoft.com" id=TheFrame style="width: 100%; height: 85%"></iframe>
  19.  
  20. <script language=JScript>
  21. function navigate() {
  22.  document.all.TheFrame.src = TheAddress.value;
  23. }
  24.  
  25. function clickShortcut() {
  26.   if (window.event.keyCode == 13) {
  27.      navigate()
  28.   }
  29. }
  30.  
  31.  
  32. TheAddress.onkeypress = clickShortcut;
  33.  
  34. </script>
  35. </body>
  36. </html>
  37.